﻿using SmartWMS.Common.ResponseOutput;
using SmartWMS.Domain.Base;
using SmartWMS.Server.BusinessServer.SalesReturns.Dto;
using SmartWMS.Server.WarehouseManage.HomeService.Dto;
using SmartWMS.Server.WarehouseManage.LossReportingServices.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Server.WarehouseManage.LossReportingServices
{
    /// <summary>
    /// 报损管理接口
    /// </summary>
    public interface ILossReportingServices:ITransientServer
    {
        /// <summary>
        /// 添加报损信息
        /// </summary>
        /// <returns></returns>
        Task<Response<bool>> AddFrmlossAsync(LossDto dto);

        /// <summary>
        /// 报损列表显示
        /// </summary>
        /// <returns></returns>
        Task<Response<dynamic>> ShowFrmlossAsync(whereDto dto);

        /// <summary>
        /// 删除报损信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Response<bool>> DeleteFrmlossAsync(KeyEntity id);

        /// <summary>
        /// 批量删除报损信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Response<bool>> BatchDelFrmlossAsync(string id);

        /// <summary>
        /// 产品列表显示
        /// </summary>
        /// <returns></returns>
        Task<Response<dynamic>> ShowProductAsync(ProductsDto dto);

        /// <summary>
        /// 查看报损信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Response<detailDto>> ReverseFrmlossAsync(detailDto dto);

    }
}
